package main

import (
	"fmt"
	"sort"
)

func main() {
	type LiveRoomGroupMemberSt struct {
		AddTime int64 `json:"add_time"`
	}
	members := make([]LiveRoomGroupMemberSt, 0)
	item1 := LiveRoomGroupMemberSt{
		AddTime: 0,
	}
	item2 := LiveRoomGroupMemberSt{
		AddTime: 2,
	}
	members = append(members, item1)
	members = append(members, item2, LiveRoomGroupMemberSt{AddTime: 33}, LiveRoomGroupMemberSt{AddTime: 34})
	sort.Slice(members, func(i, j int) bool {
		return members[i].AddTime > members[j].AddTime
	})
	fmt.Println(members)
}
